<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加银行卡</title>

<meta name="viewport" id="mobileViewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta name="description" content="！">
<meta name="Keywords" content="">

<link rel="stylesheet" href="${contextPath}/staticwx/hx/css/reset.css">
<link rel="stylesheet" href="${contextPath}/staticwx/hx/css/global.css">
<link rel="stylesheet" href="${contextPath}/staticwx/hx/css/iconfont.css">
<link rel="stylesheet" href="${contextPath}/staticwx/hx/css/uc.css">
<link rel="stylesheet" href="//cdn.bootcss.com/weui/1.1.1/style/weui.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/jquery-weui/1.0.1/css/jquery-weui.min.css">
<style>
    .baseForm li label{width:100px;margin-left: -100px;}
</style>
</head>
<body>
	<div class="wrapper">
	    <header class="header">
            <div class="hl"><a href="javascript:history.back();"><span class="iconfont icon-fanhui"></span></a></div>
	        <div class="hc">添加银行卡</div>
	        <div class="hr"><span class="iconfont icon-zhuye"></span></div>
	    </header>
	    <div class="space"></div>
	    <form id="baseForm" class="baseForm" action="${contextPath}/wx/bankcard/save.htm">
            <input type="hidden" name="from" value="${from!0}">
			<ul>
                <li class="clearfix">
                    <label>开户银行：</label>
                    <div class="inputArea">
                        <select name="bankname" id="bankname">
                            <option value="">请选择</option>
                            ${dict.getOptions('bank_type','')}
                        </select>
                    </div>
                </li>
                <li class="clearfix">
                    <label>银行卡号：</label>
                    <div class="inputArea">
                        <input type="number" placeholder="请输入银行卡号" name="bankaccount" id="bankaccount">
                    </div>
                </li>
                <li class="clearfix">
                    <label>银行开户地：</label>
                    <div class="inputArea">
                        <input type="text" placeholder="请输入银行开户地" name="bankplace" id="bankplace">
                    </div>
                </li>
				<li class="clearfix">
					<label>归属人姓名：</label>
					<div class="inputArea">
						<input type="text" placeholder="请输入真实姓名" name="realname" id="realname">
					</div>
				</li>
			</ul>
        </form>
        <div class="btnPub2">
            <button class="btn" type="button" onclick="sub()" id="baseFormSubmit">添加</button>
        </div>
	</div>
<script src="${contextPath}/staticwx/hx/js/jquery-3.0.0.min.js" type="text/javascript"></script>
<script src="//cdn.bootcss.com/jquery-weui/1.0.1/js/jquery-weui.min.js"></script>
<script>
    function sub(){
        if(!$("#bankname").val()){
            $.alert("请选择开户银行");
            return false;
        }
        if(!$("#bankaccount").val()){
            $.alert("请输入银行卡号");
            return false;
        }
        if(!$("#bankplace").val()){
            $.alert("请输入银行开户地");
            return false;
        }
        if(!$("#realname").val()){
            $.alert("请输入真实姓名");
            return false;
        }
        $("#baseForm").submit();
    }
</script>
</body>
</html>